package com.miao.common.service;

import org.springframework.stereotype.Service;

import javax.mail.MessagingException;
import java.util.Map;

@Service
public interface MailService {

    /**
     * 申请通过发送的邮件
     * @return 1发送成功 0发送失败
     */
   Integer adopt(Map<String,String> info) throws MessagingException;



    /**
     * 申请被拒绝
     * @return 1发送成功 0发送失败
     */
    Integer refuse(Map<String,String> info) throws MessagingException;

}
